<!DOCTYPE HTML>
<html lang="utf-8">
<head>
<meta charset="utf-8">
<title>驾车宝典-帖子列表</title>
<link href="${ctx}/styles/forum.css" rel="stylesheet" type="text/css">
<script charset="gbk" src="${ctx}/scripts/kindeditor-min.js"></script>
<#include '/baseHead.ftl'>
<#include '/macro.ftl'>
<!--导航结束-->
<!--/{cityNo}-{cateId}-{filter}-{titleTypeId}-{pageNumber}-{orderBy} -->
<#macro pageLink  cityNo,cateId,filter,titleTypeId,pageNumber,orderBy>${ctx}/forum/list/${cityNo}-${cateId}-${filter}-${titleTypeId}-${pageNumber}-${orderBy}</#macro>
<script>
	function changeOrder(select){
		window.location.href = "${ctx}/forum/list/${cityNo}-${cateId}-${filter}-${titleTypeId}-1-"+select.value;
	}
</script>
<!--主要部分开始-->
<section id="main"><div class="bgA_01">
	
	<div class="forumPanel_01">
		<nav class="menuField">
			<ul>
				<#list  eightGroupList as group>
				<li><a href="#"><em>${group.groupName!}</em><span>讨论主题：${group.totalTopicCount!}</span><span class="count">群组成员:${group.memberCount!}</span></a></li>
				</#list>
			</ul>
		</nav>
		<div class="linkField">
			<a  <#if cateId == 0 >class="on"</#if> href="<@pageLink   cityNo="${cityNo}" cateId="0" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="1" orderBy="${orderBy}" />">ALL</a> ｜ 
			<#list  categoryList as category>
			<a   <#if cateId == category.cateId >class="on" </#if> href="<@pageLink   cityNo="${cityNo}" cateId="${category.cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="1" orderBy="${orderBy}" /> ">${category.cateName!}</a><#if ( category_index   == ( categoryList?size - 1 ))  ><#else> ｜</#if> 
			</#list>
		</div>
		<div class="pageNumField">
			<p class="btns">
			<!--	<a href="" class="btn" title="点击发帖">发贴</a> -->
			</p>
			<p>
					<#if !topicPage.firstPage>
					<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="1" orderBy="${orderBy}" />">首页</a>
					</#if>
					<#if topicPage.hasPreviousPage>
					<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="${pageNumber-1}" orderBy="${orderBy}" /> ">上一页</a>
					</#if>
					<#list topicPage.getLinkPageNumbers() as item>
						<#if item_index==5> 
							<#break>
						</#if>
						<#if item == topicPage.thisPageNumber>
						<!--/{cityNo}-{cateId}-{filter}-{titleTypeId}-{pageNumber}-{orderBy} -->
							<a href="javascript:;" class="on">${item}</a>
						<#else>
								<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="${item}" orderBy="${orderBy}" />">${item}</a>
						</#if>
					</#list>
					<#if topicPage.hasNextPage>
					<a href="">下一页</a>
					</#if>
					<#if !topicPage.lastPage>
					<a  href="">末页</a>
					</#if>
			</p>
		</div>
		<div class="listField">
			<table cellpadding="0" cellspacing="0" class="list">
				<thead>
					<tr>
						<th colspan="2">
							<span class="controls">排序：
								<select onchange="changeOrder(this);" >
									<option value='1'<#if orderBy==1>selected</#if> >最近发表</option>
									<option value='4' <#if orderBy==4>selected</#if> >最后回复</option>
									<option value='2' <#if orderBy==2>selected</#if> >回复数</option>
									<option value='3'<#if orderBy==3>selected</#if> >点击数</option>
								</select>
							</span><span class="links"><a href="#">精华</a> ｜ <a href="#">打分</a> ｜ <a href="#">推荐</a></span>
						</th>
						<th class="by">作者</th>
						<th class="num">回复/查看</th>
						<th class="by">最后回复</th>
					</tr>
				</thead>
			</table>
			<table cellpadding="0" cellspacing="0" class="list">
				<tbody>
				<!-- 全站置顶-->
					<#list fullSiteTopList  as topic>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="${topic.topicTitleBeforeFilter}">
								<img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="有新回复">
							</a>
						</td>
						<td class="new">
							<em>[<a href="#">${topic.titleTypeName}</a>]</em>
							<a href="<@topicDetailLink topicId="${topic.topicId?c}"/>" class="normal">${topic.topicTitleBeforeFilter}</a>
						</td>
						<td class="by">  
							<a href="<@userCenterLink memberId="${topic.fkCreateMemberId?c}"/>">${topic.createMemberName!}</a>
							<span>${topic.createDate?date}</span>
						</td>
						<td class="num">${topic.replyCount?c}/${topic.clickCount?c}</td>
						<td class="by">
						<@lastReply topic=topic/>
						</td>
					</tr>
					</#list>
				<!-- 分类置顶 -->
					<#list cateGoryTopList as topic>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="${topic.topicTitleBeforeFilter}">
								<img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="有新回复">
							</a>
						</td>
						<td class="new">
							<em>[<a href="#">${topic.titleTypeName}</a>]</em>
							<a href="<@topicDetailLink topicId="${topic.topicId?c}"/>" class="normal">${topic.topicTitleBeforeFilter}</a>
						</td>
						<td class="by">
							<a href="<@userCenterLink memberId="${topic.fkCreateMemberId?c}"/>">${topic.createMemberName!}</a>
							<span>${topic.createDate?date}</span>
						</td>
						<td class="num">${topic.replyCount?c}/${topic.clickCount?c}</td>
						<td class="by">
						<@lastReply topic=topic/>
						</td>
					</tr>
					</#list>
				<!-- 普通帖子-->
					<#list topicPage.result as topic>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="${topic.topicTitleBeforeFilter}">
								<img src="${ctx}/images/icon_folder_01.gif" width="18" height="18" alt="有新回复">
							</a>
						</td>
						<td class="new">
							<em>[<a href="#">${topic.titleTypeName}</a>]</em>
							<a href="<@topicDetailLink topicId="${topic.topicId?c}"/>" class="normal">${topic.topicTitleBeforeFilter}</a>
						</td>
						<td class="by">
							<a href="<@userCenterLink memberId="${topic.fkCreateMemberId?c}"/>">${topic.createMemberName!}</a>
							<span>${topic.createDate?date}</span>
						</td>
						<td class="num">${topic.replyCount?c}/${topic.clickCount?c}</td>
						<td class="by">
						<@lastReply topic=topic/>  
						</td>
					</tr>
					</#list>
				<!--
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="有新回复-新窗口中打开"><img src="${ctx}/images/icon_folder_01.gif" width="18" height="18" alt="有新回复"></a>
						</td>
						<td class="new">
							<em>[<a href="#">原创</a>]</em>
							<a href="#" class="normal">下午特别困，有木有？</a>
						</td>
						<td class="by">
							<a href="#">会飞的鱼</a>
							<span>2013-2-2</span>
						</td>
						<td class="num">88/126</td>
						<td class="by">
							<a href="#">爱上天使</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="有新回复-新窗口中打开"><img src="${ctx}/images/icon_folder_01.gif" width="18" height="18" alt="有新回复"></a>
						</td>
						<td class="new">
							<em>[<a href="#">原创</a>]</em>
							<a href="#" class="normal">下午特别困，有木有？</a>
						</td>
						<td class="by">
							<a href="#">会飞的鱼</a>
							<span>2013-2-2</span>
						</td>
						<td class="num">88/126</td>
						<td class="by">
							<a href="#">爱上天使</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="有新回复-新窗口中打开"><img src="${ctx}/images/icon_folder_01.gif" width="18" height="18" alt="有新回复"></a>
						</td>
						<td class="new">
							<em>[<a href="#">原创</a>]</em>
							<a href="#" class="normal">下午特别困，有木有？</a>
						</td>
						<td class="by">
							<a href="#">会飞的鱼</a>
							<span>2013-2-2</span>
						</td>
						<td class="num">88/126</td>
						<td class="by">
							<a href="#">爱上天使</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="有新回复-新窗口中打开"><img src="${ctx}/images/icon_folder_01.gif" width="18" height="18" alt="有新回复"></a>
						</td>
						<td class="new">
							<em>[<a href="#">原创</a>]</em>
							<a href="#" class="normal">下午特别困，有木有？</a>
						</td>
						<td class="by">
							<a href="#">会飞的鱼</a>
							<span>2013-2-2</span>
						</td>
						<td class="num">88/126</td>
						<td class="by">
							<a href="#">爱上天使</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="论坛置顶-新窗口中打开"><img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="论坛置顶"></a>
						</td>
						<td class="new">
							<em>[<a href="#">资料</a>]</em>
							<a href="#" class="normal">爱车保养知识大全</a>
						</td>
						<td class="by">
							<a href="#">青春无敌</a>
							<span>2013-1-8</span>
						</td>
						<td class="num">35/94</td>
						<td class="by">
							<a href="#">笑一笑</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="论坛置顶-新窗口中打开"><img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="论坛置顶"></a>
						</td>
						<td class="new">
							<em>[<a href="#">资料</a>]</em>
							<a href="#" class="normal">爱车保养知识大全</a>
						</td>
						<td class="by">
							<a href="#">青春无敌</a>
							<span>2013-1-8</span>
						</td>
						<td class="num">35/94</td>
						<td class="by">
							<a href="#">笑一笑</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="论坛置顶-新窗口中打开"><img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="论坛置顶"></a>
						</td>
						<td class="new">
							<em>[<a href="#">资料</a>]</em>
							<a href="#" class="normal">爱车保养知识大全</a>
						</td>
						<td class="by">
							<a href="#">青春无敌</a>
							<span>2013-1-8</span>
						</td>
						<td class="num">35/94</td>
						<td class="by">
							<a href="#">笑一笑</a>
							<span>2013-4-7</span>
						</td>
					</tr>
					<tr>
						<td class="icn">
							<a target="_blank" class="icon" title="论坛置顶-新窗口中打开"><img src="${ctx}/images/icon_new_01.gif" width="18" height="18" alt="论坛置顶"></a>
						</td>
						<td class="new">
							<em>[<a href="#">资料</a>]</em>
							<a href="#" class="normal">爱车保养知识大全</a>
						</td>
						<td class="by">
							<a href="#">青春无敌</a>
							<span>2013-1-8</span>
						</td>
						<td class="num">35/94</td>
						<td class="by">
							<a href="#">笑一笑</a>
							<span>2013-4-7</span>
						</td>
					</tr>
				</tbody>
				-->
			</table>
		</div>
		<div class="pageNumField">
		
			 <p class="btns">
			<!--	<a href="#" class="btn" title="点击发帖">发贴</a>	-->
	
			</p>
			<p>
				<#if !topicPage.firstPage>
					<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="1" orderBy="${orderBy}" />">首页</a>
					</#if>
					<#if topicPage.hasPreviousPage>
					<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="${pageNumber-1}" orderBy="${orderBy}" /> ">上一页</a>
					</#if>
					<#list topicPage.getLinkPageNumbers() as item>
						<#if item_index==5> 
							<#break>
						</#if>
						<#if item == topicPage.thisPageNumber>
						<!--/{cityNo}-{cateId}-{filter}-{titleTypeId}-{pageNumber}-{orderBy} -->
							<a href="javascript:;" class="on">${item}</a>
						<#else>
								<a href="<@pageLink   cityNo="${cityNo}" cateId="${cateId}" filter="${filter}" titleTypeId="${titleTypeId}" pageNumber="${item}" orderBy="${orderBy}" />">${item}</a>
						</#if>
					</#list>
					<#if topicPage.hasNextPage>
					<a href="">下一页</a>
					</#if>
					<#if !topicPage.lastPage>
					<a  href="">末页</a>
					</#if>
			</p>
		</div>
		<#if (cateId>0 )>
		<div class="formField">
			<div class="title">
				<h2>快速发贴</h2>
			</div>
			<div class="form">
				<div class="formTitle">
					<div class="select">
						<select class="slt">
									<option value="0">选择群组</option>
									<#list allGroupList as group>
										<option value="${group.groupId?c}">${group.groupName!}</option>
									</#list>
						</select>
						<select class="slt">
									<option value="0">选择主题分类</option>
									<#list topicTitleTypeList as titleTile>
										<option value="${titleTile.titleTypeId!}">${titleTile.titleTypeName!}</option>
									</#list>
						</select>
						
					</div>
					<input type="text" class="txt" value="">
					<span>还可输入 <strong>80</strong> 个字符</span>
				</div>
				<div class="formContent">
					<img src="${ctx}/images/pic_invitation_01.jpg" width="748" height="107" class="demo" alt="demo">
				</div>
				<div class="formCheck">
					<input type="checkbox" id="shareToWeibo" name="shareTo" class="check"><label for="shareToWeibo">同时发布到新浪微博</label>
					<input type="checkbox" id="shareToTencent" name="shareTo" class="check"><label for="shareToTencent">同时发布到腾讯微博</label>
				</div>
				<div class="formBtns">
					<button class="btn btn1" type="submit">发布帖子</button>
				</div>
			</div>
		</div>
		</#if>
		
	</div>
	
<#include '/commonFriendLink.ftl'>

</div></section>
<!--主要部分结束-->
<#include '/baseFoot.ftl'>
</body>
</html>